#ifndef G29_WORK_THREAD_H
#define G29_WORK_THREAD_H

# pragma execution_character_set("utf-8")

#include <QObject>
#include <QThread>
#include "LogitechSteeringWheelLib.h"

extern DIJOYSTATE2* G29_DATA;
extern int8_t G29_GEAR;
struct g29_button
{
    uint8_t counter;
};

class G29_Work_Thread : public QThread
{
    Q_OBJECT
public:
    G29_Work_Thread();
    void run() override;
public slots:
    void g29_init();
    void g29_destroy();
signals:
    void log(QString text);
    void g29_data_refresh(QString p0,QString p1,QString p2,QString p3);
    void g29_data_publish();
private:
    bool m_init_status = false;
    g29_button m_button0;
    g29_button m_button1;
};

#endif // G29_WORK_THREAD_H
